<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="js/jquery.min.js"></script>
    <link rel="stylesheet" href="lib/bootstrap-3.3.7-dist/css/bootstrap.css">
    <script src="js/HttpUtil.js"></script>
    <title>Title</title>
    <style>
        .background{
            background-image: url("images/xk.jpeg");
            background-repeat: no-repeat;
        }
    </style>
</head>
<body>
<div class="background">
<ul class="nav nav-pills navbar navbar-inverse"  >
    <li role="presentation" ><a href="#">首页</a></li>
    <li role="presentation"><a href="http://localhost:8080/gs/owner.html">业主信息管理</a></li>
    <li role="presentation"><a href="#">人员列表</a></li>
    <button type="button" class="btn btn-primary" style="float: right;margin-top: 5px" onclick="fresh()">
        <span class="glyphicon glyphicon-refresh" aria-hidden="true" ></span>
    </button>
</ul>

    <div class="input-group" style="margin-top: 40px; width: 300px; margin-left: 500px" >
        <input type="text" class="form-control" placeholder="所属小区" aria-describedby="basic-addon1" id="one">
    </div>

    <div class="input-group" style="margin-top: 20px;width: 300px; margin-left: 500px" >
        <input type="text" class="form-control" placeholder="所属房产" aria-describedby="basic-addon2" id="two">
    </div>
    <div class="input-group" style="margin-top: 20px;width: 300px;margin-left: 500px">
        <input type="text" class="form-control" placeholder="成员名称" aria-label="Amount (to the nearest dollar)" id="three">
    </div>
    <div class="input-group" style="margin-top: 20px;width: 300px;margin-left: 500px">
        <input type="text" class="form-control"placeholder="成员照片" aria-label="Amount (to the nearest dollar)" id="four">
    </div>
    <div class="input-group" style="margin-top: 20px;width: 300px;margin-left: 500px">
        <input type="text" class="form-control" id="basic-url" placeholder="身份证号" aria-describedby="basic-addon3" id="five">
    </div>
    <div class="input-group" style="margin-top: 20px;width: 300px;margin-left: 500px">
        <input type="text" class="form-control" placeholder="联系方式" aria-describedby="basic-addon1" id="six">
    </div>

    <div class="input-group" style="margin-top: 20px;width: 300px;margin-left: 500px">
        <input type="text" class="form-control" placeholder="职业" aria-describedby="basic-addon2" id="seven">
    </div>


    <div class="input-group" style="margin-top: 20px;width: 300px;margin-left: 500px">
        <input type="text" class="form-control" placeholder="性别" aria-label="Amount (to the nearest dollar)" id="nine">
    </div>
    <div class="input-group" style="margin-top: 20px;width: 300px;margin-left: 500px">
        <input type="text" class="form-control"placeholder="成员类型"  aria-describedby="basic-addon3" id="ten">
    </div>
    <div class="input-group" style="margin-top: 20px;width: 300px;margin-left: 500px">
        <input type="text" class="form-control" placeholder="备注"aria-describedby="basic-addon3" id="eleven">
    </div>
    <div class="input-group" style="margin-top: 20px;width: 300px;margin-left: 500px">
        <input type="text" class="form-control"  placeholder="状态码" aria-describedby="basic-addon3" id="twelve">
    </div>
<button type="button" class="btn btn-primary" style="margin-top: 30px;margin-left: 550px;" onclick="addTrue()">
    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
    确认添加
</button>
</div>
<script>
    function fresh() {
        location.reload();
    }
    function addTrue() {
        var val = $("#one").val();
         var val1 = $("#two").val();
        var val2 = $("#three").val();
        var val3 = $("#four").val();
       var val4 =$("#five").val();
       var val5= $("#six").val();
      var val6=$("#seven").val();
      var val8 = $("#nine").val();
       var val9= $("#ten").val();
        var valten=$("#eleven").val();
       var valeleven= $("#twelve").val();
        let url="owner/AddManagement";
        let params={
            ownerCommunityId:val,
        ownerHouseId:val1,
        ownerName:val2,
        ownerPic:val3,
        ownerNo:val4,
        ownerConnect:val5,
        ownerWork:val6,
        ownerGender:val8,
        ownerType:val9,
        ownerRemarks:valten,
        isDel:valeleven
        };
        httpGet(url,params,function (resp) {
            if (resp!=null){
                alert("添加成功")
                location.href="http://localhost:8080/gs/owner.html"
            }
        })
    }
</script>
</body>
</html>